<form method="post" enctype="multipart/form-data" target="_blank" id="form-order">
    <div class="table-responsive">
        <table class="table table-bordered table-hover">
            <colgroup>
                <col width="5%">
                <col width="5%">
                <col width="15%">
                <!-- <col width="10%"> -->
                <col width="5%">
                <col width="10%">

                <!-- <col width="10%"> -->
                <col width="15%">
                <!-- <col width="5%"> -->
                <col width="5%">
                <col width="5%">
                <col width="30%">
            </colgroup>
            <thead>
                <tr>
                    <td class="text-right">
                        用户ID
                    </td>
                    <td class="text-left">
                        昵称
                    </td>
                    <td class="text-left">
                        头像
                    </td>
                    <td class="text-right">操作</td>
                </tr>
            </thead>
            <tbody>
                <volist name="list" id="vo">
                    <tr>
                        <td class="text-right">{$vo.user_id}</td>
                        <td class="text-left">{$vo.nickname}</td>
                        <td class="text-left">
                            <notempty name="vo.head_pic">
                                <img src="{$vo.head_pic}" height="60" width="60"/>
                            </notempty>
                        </td> 
                        <td class="text-right">                            
                            <a data-url="{:U('Admin/im/quit_group')}"
                                data-toggle="tooltip"
                                data-id="{$groupid}"
                                data-userid="{$vo['user_id']}"
                                onclick="delfun(this)"
                                title="" class="btn btn-danger" data-original-title="踢出"><i class="fa fa-trash-o" title="踢出"></i></a>
                        </td>
                    </tr>
                </volist>
            </tbody>
        </table>
    </div>
</form>
<div class="row">
    <div class="col-sm-3 text-left">
    </div>
    <div class="col-sm-6 text-right">{$page}</div>
</div>
<script>
    $(".pagination  a").click(function () {
        var page = $(this).data('p');
        ajax_get_table('search-form2', page);

    });

    function delfun(obj){
        if(confirm('确认将此人踢出该群吗？')){		
            $.ajax({
                type : 'post',
                url : $(obj).attr('data-url'),
                data : {
                    groupid: $(obj).attr('data-id'),
                    user_id: $(obj).attr('data-userid'),
                },
                dataType : 'json',
                success : function(data){
                    if(data && data.status>0){
                        $(obj).parent().parent().remove();
                    }else{
                        layer.alert( data.info || '踢出失败', {icon: 2});  //alert('删除失败');
                    }
                }
            })
        }
        return false;
    }


    $(function () {
        $("[data-toggle='tooltip']").tooltip();
    })
</script>